package cn.wolfcode.luowowo.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;
//用户实例
@Getter
@Setter
@ToString
@Document("userInfo")//数据库中的集合名
public class User extends BaseDomain{
    public static final int GENDER_SECRET = 0;  //保密
    public static final int GENDER_MALE = 1;    //男
    public static final int GENDER_FEMALE = 2;  //女
    public static final int STATE_NORMAL = 0;   //正常
    public static final int STATE_DISABLE = 1;  //冻结

    private String nickname;                    //姓名
    private String phone;                       //手机号
    private String password;                    //密码
    private String email;                       //邮箱
    private int gender = GENDER_SECRET;         //性别
    private int level = 0;                      //用户级别
    private String city;                        //所在城市
    private String headImgUrl;                  //头像
    private String info;                        //个性签名
    private int state = STATE_NORMAL;           //账号状态

}
